package org.jeecg.modules.demo.pubuySettlementOrder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: pu_settlement
 * @Author: jeecg-boot
 * @Date:   2022-04-07
 * @Version: V1.0
 */
@Data
@TableName("pu_settlement")
@ApiModel(value="pu_settlement对象", description="pu_settlement")
public class PuSettlementOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    /**whNum*/
    @Excel(name = "whNum", width = 15)
    @ApiModelProperty(value = "whNum")
    @Dict(dictTable = "YX_WAREHOUSE",dicCode = "WH_NUM",dicText = "WH_NAME")
    private java.lang.String whNum;
    /**woNo*/
    @Excel(name = "woNo", width = 15)
    @ApiModelProperty(value = "woNo")
    private java.lang.String woNo;
    /**pusNo*/
    @Excel(name = "pusNo", width = 15)
    @ApiModelProperty(value = "pusNo")
    private java.lang.String pusNo;
    /**订单总量*/
    @Excel(name = "验收数量（入库单量）", width = 15)
    @ApiModelProperty(value = "验收数量（入库单量）")
    private java.math.BigDecimal qoQuantity;
    /**pusPrice*/
    @Excel(name = "pusPrice", width = 15)
    @ApiModelProperty(value = "pusPrice")
    //含税单价
    private java.math.BigDecimal hsdj;
    /**含税金额*/
    @Excel(name = "pusAmount", width = 15)
    @ApiModelProperty(value = "pusAmount")
    private java.math.BigDecimal hsje;
    /**无税单价*/
    @Excel(name = "pusNotax", width = 15)
    @ApiModelProperty(value = "pusNotax")
    private java.math.BigDecimal wsdj;
    /**无税金额*/
    @Excel(name = "pusNotax", width = 15)
    @ApiModelProperty(value = "pusNotax")
    private java.math.BigDecimal wsje;
    /**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "pusStaff")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String poStaff;
    /**pusCdate*/
    @Excel(name = "pusCdate", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "pusCdate")
    private java.util.Date pusCdate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**买受单位名称*/
    @Excel(name = "买受单位名称", width = 15)
    @ApiModelProperty(value = "买受单位名称")
    private String maisdwmc;
    /**出卖单位名称*/
    @Excel(name = "出卖单位名称", width = 15)
    @ApiModelProperty(value = "出卖单位名称")
    private String chumdwmc;

    /**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    @Dict(dicCode = "tax_rate")
    private java.lang.Integer psTaxrat;

    @Dict(dicCode= "checkState")
    private Integer shenhe;

    private Integer shanchu;

    //计量单位
    private String measureunit;

    private String zhilzbjson;

    private String zhilzb;
    /**合同编号*/
    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private java.lang.String puConNo;

    private Double kouton;
    //备注
    private String remark;

    private BigDecimal htjjia;

    private BigDecimal shouyi;

    private BigDecimal adjust;

    private BigDecimal fpsl;

    private String realzb;
    //业务员
    @Excel(name = "审核人", width = 15)
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String saleman;
    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;
    /**采购订单号*/
    @Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private String poOrder;
    //项目
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    private String project;
    //存货名称
    private String cinvname;

    /**税额*/
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private BigDecimal psTax;

    //货权转移证明
    private String cotoo;

    //附件
    private String accessory;


    //质量奖罚
    private BigDecimal zljf;
    //结算数量
    private BigDecimal payTotail;
    //实际结算数量（扣完吨后）
    private BigDecimal realityTotail;

    private BigDecimal ktotail;

    private BigDecimal dtotail;


    private BigDecimal poTotail;
    private BigDecimal ykTotal;
    private BigDecimal syTotal;
    private BigDecimal ykje;
    private BigDecimal syje;
    private java.lang.String receiptNumber;

    private Integer isInvoice;
    private  Integer yfhx;

    private BigDecimal shuicha;
    private BigDecimal zjzy;
    private BigDecimal tiexian;
    /**
     * 租户ID
     */
    private Integer tenantId;

    private Integer djlx;
    private BigDecimal yhxTotail;
    private BigDecimal yhxMoney;
    private String hxdh;
    private  String tradecode;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;
    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;
}
